import type { CardProps as AntdCardProps } from 'antd';
import { Card as AntdCard } from 'antd';
import React from 'react';
import Grid from './Grid';
import Meta from './Meta';

export type { Props as GridProps } from './Grid';
export type { Props as MetaProps } from './Meta';
export { Grid, Meta };

export type CardProps = AntdCardProps;

function Card(props: CardProps) {
  return <AntdCard {...props} />;
}

Card.Grid = Grid;
Card.Meta = Meta;
export default Card;
